package com.zhang.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhang.order.entity.AppraiseFile;
import com.zhang.order.service.AppraiseFileService;
import com.zhang.order.mapper.AppraiseFileMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hongmizfb
 * @description 针对表【appraise_file(评价与文件关联表（用户上传评价内容）)】的数据库操作Service实现
 * @createDate 2024-11-06 22:31:55
 */
@Service
public class AppraiseFileServiceImpl extends ServiceImpl<AppraiseFileMapper, AppraiseFile>
        implements AppraiseFileService {

    @Override
    public List<AppraiseFile> listByAppraiseId(Long id) {
        LambdaQueryWrapper<AppraiseFile> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(AppraiseFile::getAppraiseId, id);
        return list(wrapper);
    }
}




